#ifndef					_DICTIONARY_H_
#define					_DICTIONARY_H_

#include <string>
#include <unordered_map>

class CDictionary
{
public:
	CDictionary();
	~CDictionary();

	static std::string	DELIM;

	bool				Create(bool bStopword);

	void				AddSentence(std::string sentence);
	std::string			Query(std::string sentence);
	int					Index(std::string word);
	int					Frequency(std::string word);

	int					Size();

private:
	bool				m_bStopword;

	std::unordered_map<std::string, std::pair<int, int>>	m_dictionary;
	std::unordered_map<std::string, int>	m_stopword;

protected:
};

#endif					//_DICTIONARY_H_
